LOOP SOUND

This command will play and loop the specified Sound Number continuously.

  Syntax
LOOP SOUND Sound Number
LOOP SOUND Sound Number,Start Position
LOOP SOUND Sound Number,Start Position,End Position
LOOP SOUND Sound Number,Start Position,End Position,Initial Position
  Parameters
Sound Number
Integer
The command will play and loop the specified Sound Number continuously
Start Position
Integer
This value is an integer number such as 1.
End Position
Integer
This value is an integer number such as 1.
Initial Position
Integer
This value is an integer number such as 1.

  Returns

This command does not return a value.

  Description

Optional parameters allow you to specify a start position, end position and initial position in bytes that a looping sound will use as it plays.

  Example Code
cls
load sound "man.wav",1
loop sound 1
wait 1000*8
stop sound 1
do
loop
end
  See also

SOUND Commands Menu
Index